PreviousNextTracker indexSee it online !

(238/308) 1735 - ProjectViewer changes behavior of "Search in Directory"

If I bind a shortcut to the built-in action, "search in directory" and invoke ProjectViewer's "Search in Project Root",
thereafter, "search in directory" restricts me from searching outside the project root.

Steps to reproduce: do "search in project root".
search in a folder like /tmp
it will tell you "that was outside the project. I will search in the project like you didn't mean to do."
I don't see how that is a desireable behavior, but ok, the action you invoked was "search in project root", so my bug report is not because of that.

Afterwards, try invoking the built-in action "search in directory" and do a search in /tmp.
same thing happens again\!

that's just wrong in every way.



It appears that PV incorrectly changes how "Search in Directory" works.


Submitted ezust - 2013-09-14 17:28:55 Assigned
Priority 5 Labels Project Viewer
Status open Group
Resolution None

Comments

2013-09-15 21:57:34
ezust

I found a workaround. If you used "search in project root" and
then later do "search in directory", all you gotta do is click one of the other "search in" radio buttons, such as "all buffers", and then click the "directory" radio button to re-select it.

This appears to "clear out" whatever stuff was put into jEdit's SearchAndReplace static variables by ProjectViewer and makes "Search in Directory" work as it did before.

2014-03-17 23:31:56.327000
ezust

- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -13,6 +13,6 @@



-It appears that PV incorrectly changes how "Search in Project Root" works.
+It appears that PV incorrectly changes how "Search in Directory" works.



~~~~

- **Group**: -->